package com.xiaoke.api.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("service")
public interface SearchHistoryService {

    @GetMapping("/searchHistory/deleteByUser")
    void deleteByUser(@RequestParam("userId") String userId,@RequestParam("shopId") String shopId);

    @GetMapping("/searchHistory/findTop10ByUserAndShop")
    List<String> findTop10ByUserAndShop(@RequestParam("userId") String userId,@RequestParam("shopId") String shopId);
}
